package lang;

import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by admin on 2017/6/2.
 */
public class LongTest {
    @Test
    public void test01(){
        long a = 123456;
        Long b = 123456L;
        Long c = 123456L;

        System.out.println(a==b);
        System.out.println(a==c);
        System.out.println(b==c);
        System.out.println(c.toString());

        String s="123456";
        System.out.println(Long.valueOf(s)==c);

        Map<Long,Long> map = new HashMap<>();
        map.put(c,123L);
        map.put(Long.valueOf(s),456L);
        System.out.println(map);
    }
    @Test
    public void test02(){
        long a=1002;
        Short s = 1;
        s = (short)a;
        System.out.println(s);
    }
}
